# -*- coding: utf-8 -*-

import cv2

class Image:

    def __init__(self, name, flag=0):
        self._name = name
        self._flag = flag  # Grayscale flag
        self._img = cv2.imread(self._name, self._flag)

    def showImage(self):
     	cv2.imshow(self._name, self._img)
        cv2.waitKey(0)
        cv2.destroyAllWindows()
    
    def writeImg(self, path):
        for point in path:
            cv2.line(self._img, point, point, (255,0,0), 1) 
        
if __name__ == '__main__':
    #image = Image('peppersgrad.pgm')
    #image.showImage()
    pass

